﻿namespace LogExtConsoleTester
{
	#region Namespaces

	using System;
	using WebServiceExtensions.Common;
	using WebServiceExtensions.LogExtension;

	#endregion Namespaces

	/// <summary>
	///   TODO: Update summary.
	/// </summary>
	    public class MySoapLogger : ISoapLogger
	    {
		    #region Public Methods

            /// <summary>
            /// Gets the SOAP message details.
            /// </summary>
            /// <param name="messageLogType">Type of the message log.</param>
            /// <param name="message">The message.</param>
		    public void GetSoapMessageDetailsForLogging(SoapMessageLogType messageLogType, SoapMessageDetails message)
		    {
			    Serializer<SoapMessageDetails> serializer = new Serializer<SoapMessageDetails>(SerializerType.XmlSerializer);
			    string str = serializer.Serialize(message);
			    Console.Write(str);
			    Console.Read();
		    }

            /// <summary>
            /// Gets the SOAP message details.
            /// </summary>
            /// <param name="messageLogType">Type of the message log.</param>
            /// <param name="message">The message.</param>
	        public void GetSoapMessageDetailsForLogging(SoapMessageLogType messageLogType, string message)
	        {
                Console.Write(message);
	        }

	        #endregion Public Methods
	    }
}